package grafikon;

import java.io.Serializable;

/**
 *
 * @author Csüti
 */
public class Coords implements Serializable, Comparable<Coords> {

    double x;                           //x coordinate
    double y;                           //y coordinate

    public Coords(double x, double y) {
        this.x = x;
        this.y = y;
    }

    @Override
    public int compareTo(Coords o) {
        return (this.x > o.x) ? 1 : -1;         //Sorts the selected lists by the x coordinates
    }
}
